<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="true">
<head>  
  <title>记账本/新增</title>
  <%@include file="../link_script.jsp" %>
</head>
<body> 
<form action="account.do?method=addAccount_Do" method="post" target="_self">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@include file="../operate_button_add.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#b5d6e6">       
          <tr>
            <td width="100%" class="STYLE32">新增日常记账</td>
          </tr>
          <tr>
            <td class="STYLE11"><table width="100%" border="0" bordercolor="#b5d6e6" cellpadding="0" cellspacing="0">
               <tr>
                 <td class="STYLE51">&nbsp;&nbsp;记账日期 : </td>
                 <td class="STYLE11"><input type="text" id="accountDate" name="accountDate" value="${accountDate}" size="10" /></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;科目 : </td>
                <td class="STYLE11">
                <select name="subjectID" onchange="javascript:change();">
                  <c:if test="${!empty subjectList}">
                    <c:forEach items="${subjectList}" var="s">
                      <option value="${s.subID}">${subName}/${s.subName}</option>
                  </c:forEach></c:if></select></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;支出 : </td>
                <td class="STYLE11"><html:text property="reduction" value="0.00" readonly="${output}" size="10" />&nbsp;￥&nbsp;&nbsp;</td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;收入 : </td>
                <td class="STYLE11"><html:text property="increase" value="0.00" readonly="${income}" size="10" />&nbsp;￥&nbsp;&nbsp;</td>
              </tr>       
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;描述 : </td>
                <td class="STYLE11"><input type="text" id="accountDesc" name="accountDesc" size="30" />&nbsp;&nbsp;<font color="red">*</font>&nbsp;&nbsp; 不能超过20个汉字。</td>
              </tr>         
            </table></td>
          </tr>
          <tr>
            <td class="STYLE12"><html:submit value="提交"/><html:reset value="取消"/></td>
          </tr>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@include file="../no_page.jsp" %>
</table>
</form>
</body>
</html>
